package com.elastic.esplus.entity;
import com.elastic.domain.EsGeoPoint;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xpc.easyes.core.anno.TableField;
import com.xpc.easyes.core.anno.TableId;
import com.xpc.easyes.core.anno.TableName;
import com.xpc.easyes.core.enums.IdType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * @Author: Chenyw
 * @Date: 2022/10/22/18:15
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "info_index")
@Accessors(chain = true)
public class InfoEntity {

    @TableId(type = IdType.CUSTOMIZE)
    private String id;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("info_time")
    private LocalDateTime infoTime;

    private EsGeoPoint location;

    @TableField(value = "adsb_ms")
    private String adsb_ms;

    @TableField(value = "target_type")
    private String target_type;

}
